#!/usr/bin/env python

"""
tf_test_004_multifetch.py
Multiple values fetching test example.
"""

__version__     = "1.0.0"
__author__      = "David Qiu"
__email__       = "david@davidqiu.com"
__website__     = "www.davidqiu.com"
__copyright__   = "Copyright (C) 2017, David Qiu. All rights reserved."


import tensorflow as tf
import numpy as np


if __name__ == '__main__':
  # definition
  a = tf.constant(2.0, name='a')
  b = tf.constant(3.0, name='b')
  c = tf.constant(5.0, name='c')
  intermed = tf.add(a, b, name='intermed')
  mul = tf.multiply(intermed, c, name='mul')

  # execution
  with tf.Session() as sess:
    res = sess.run([intermed, mul])
    print(res)


